<?php
declare(strict_types=1);

namespace Core\Package\ElementPlus\Component;

use Core\Package\ElementPlus\ElementAbstract;

abstract class ComponentAbstract extends ElementAbstract
{
    /**
     * 组件类型
     * @var string
     */
    protected string $_type;

    protected array $_style;

    protected string $_class;


    /**
     * 设置样式
     */
    public function style(array $style): static
    {
        $this->_style = $style;
        return $this;
    }

    public function class(string $class): static
    {
        $this->_class = $class;
        return $this;
    }
}